overlay: Don't chain up in size_allocate
authorTimm Bäder <mail@baedert.org>
Thu, 1 Mar 2018 20:36:15 +0000 (21:36 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 4 Mar 2018 18:12:04 +0000 (19:12 +0100)
The GtkBin size_allocate implementation will allocate a size to the main
child, which GtkOverlay already does.

gtk/gtkoverlay.c

index f4c06b1a1deb05293258b6910f2f65b166f566bc..63636d8cdecf7320e18ae8b6049116a12001cc5b 100644 (file)
@@ -266,8 +266,6 @@ gtk_overlay_size_allocate (GtkWidget           *widget,
   GSList *children;
   GtkWidget *main_widget;
 
-  GTK_WIDGET_CLASS (gtk_overlay_parent_class)->size_allocate (widget, allocation, baseline, out_clip);
-
   main_widget = gtk_bin_get_child (GTK_BIN (overlay));
   if (main_widget && gtk_widget_get_visible (main_widget))
     gtk_widget_size_allocate (main_widget, allocation, -1, out_clip);